<?php

namespace TpAmis;

use think\Service;
use LhpAmis\util\AmisConfig;
use LhpAmis\command\Install;
use LhpAmis\command\Uninstall;

class LhpAmisService extends Service
{
    public function boot()
    {
        // Resources::install(false); //检查资源文件

        $this->commands(['tpamis:install' => Install::class]);
        $this->commands(['tpamis:uninstall' => Uninstall::class]);

        AmisConfig::set($this->app->config->get('tpamis'));
    }
}
